
using CStock;
using System;
using System.Diagnostics;

using NUnit.Framework;
namespace TestCases.StockData
{
	

	/// <summary>Some simple Tests.</summary>
	/// 
	[TestFixture] 
	public class DataItemTest : ProgramContext_TestCases
	{

        //IDataClassFactory dataClassFactory;
        private const string shareName = "TestCaseShare";

        IDataItem dataItem;

        public DataItemTest()
        {
            Init_ID_Siemens12345();
        }

		
		public void Init_ID_Siemens12345() 
		{
			this.dataItem = new DataItem();
            
            this.dataItem.ID = "Siemens12345";
			
			DataClassTest dcTest = new DataClassTest();

            IDataClass dc = dcTest.DataClassFactory.StockObjectBase as IDataClass;
            dc.ID = this.dataItem.ID;
			
			dataItem.DataClass = dc;
	
		}
		[Test] 
		public void Save()
		{

            this.dataItem.Serialize();
		}
	
		
	
		
	
	}
}